package co.baiku.boot.core.web.controller;

import co.baiku.boot.common.tools.GenericsTools;
import co.baiku.boot.core.orm.service.BaseService;

import java.io.Serializable;

public abstract class OrmController<T, D, ID extends Serializable> extends BaseController {

    protected Class<ID> instanceAnnotationID() {
        try {
            return GenericsTools.getSuperClassGenricType(this.getClass(), 2);
        } catch (Exception var2) {
            var2.printStackTrace();
            return null;
        }
    }

    public abstract BaseService<T, D, ID> getBaseService();
}
